<%--<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
    <head>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8" />

        <title>培训管理</title>

        <link href="../../css/mine.css" type="text/css" rel="stylesheet" />
    </head>
    <body>
        <style>
            .tr_color{background-color: #9F88FF}
        </style>
        <div class="div_head">
            <span>
                <span style="float: left;">当前位置是：培训管理-》培训考核与反馈</span>
                <span style="float: right; margin-right: 8px; font-weight: bold;">
                   
                </span>
            </span>
        </div>
        <div></div>
        <div class="div_search">
            <span>
                <form action="/peixun/peixunfankui/findAllFanKui" method="post">
                    培训名称: 
					<input type="text" name="trainingname"  value="${trainingname}"/>
					培训时间：
					<input type="date" name="trainingdateStart" value="${trainingdateStart}"/>至<input type="date" name="trainingdateEnd" value="${trainingdateEnd}"/>
                    <input value="查询" type="submit" />
                    <input value="清空" type="reset" />
                </form>
            </span>
        </div>
        <div style="font-size: 13px; margin: 10px 5px;">
            <table class="table_a" border="1" width="100%">
                <tbody><tr style="font-weight: bold;">
                        <td width="">培训名称</td>
                        <td width="15%">培训讲师</td>						
                        <td width="15%">培训时间</td>
						<td width="15%">审核状态</td>                   
                        <td align="center" width="15%">操作</td>
                    </tr>
<c:forEach items="${pageInfo.list}" var="training" >
                    <tr id="product1">
                        <td name="trainingname">${training.trainingname}</td>
                        <td name="trainingteacher">${training.trainingteacher}</td>
						<td name="trainingdate"><fmt:formatDate value="${training.trainingdate}" pattern="yyyy-MM-dd" /></td>
						<td name="auditopinion">${training.auditopinion}</td>
                        <td>
							<a href="/peixun/peixunfankui/fankui?id=${training.id}">培训反馈</a>
						</td>                        
                    </tr>
</c:forEach>
              <c:set value="${pageInfo.pageNum}" var="pageNum"/>
              <c:set value="${pageInfo.pages}" var="pages"/>
              <c:set value="${pageInfo.nextPage}" var="nextPage"/>
              <c:set value="${pageInfo.prePage}" var="prePage"/>
              <c:set value="${pageInfo.total}" var="total"/>
                    <tr>
                        <td colspan="20" style="text-align: center;">
                            <a href="/peixun/peixunfankui/findAllFanKui?trainingname=${trainingname}&trainingdateStart=${trainingdateStart}&trainingdateEnd=${trainingdateEnd}">首页</a>
                            <a href="/peixun/peixunfankui/findAllFanKui?index=${pageNum==0?1:prePage}&trainingname=${trainingname}&trainingdateStart=${trainingdateStart}&trainingdateEnd=${trainingdateEnd}">上一页</a>

                            <c:forEach begin="1" end="${pages}" var="i">
                                <c:if test="${i==pageNum}">
                                    <a href="/peixun/peixunfankui/findAllFanKui?index=${i}&trainingname=${trainingname}&trainingdateStart=${trainingdateStart}&trainingdateEnd=${trainingdateEnd}">${i}</a>
                                </c:if>
                                <c:if test="${i!=pageNum}">
                                    <a href="/peixun/peixunfankui/findAllFanKui?index=${i}&trainingname=${trainingname}&trainingdateStart=${trainingdateStart}&trainingdateEnd=${trainingdateEnd}" style="text-decoration: none">${i}</a>
                                </c:if>
                            </c:forEach>

                            <a href="/peixun/peixunfankui/findAllFanKui?index=${pageNum==0?total:nextPage}&trainingname=${trainingname}&trainingdateStart=${trainingdateStart}&trainingdateEnd=${trainingdateEnd}"
                            onclick="return ${nextPage!=0}">下一页</a>
                            <a href="/peixun/peixunfankui/findAllFanKui?index=${pages}&trainingname=${trainingname}&trainingdateStart=${trainingdateStart}&trainingdateEnd=${trainingdateEnd}">尾页</a>
                            共${total}条 每页显示 ${pageNum}/${pages}
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </body>
</html>